<template>
    <div class="app-container">
        <!-- 图片素材新增 -->
        <h5 class="titleInfo">
            基础数据
        </h5>
        <el-form ref="list1" :inline="true" :model="list1" label-width="130px">
            <el-row>
                <el-col :span="24">
                    <el-form-item label="图片描述">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="分享描述">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="所属分类">
                        <el-select placeholder="请选择" v-model="val">
                            <el-option label="1" value="1"></el-option>
                            <el-option label="2" value="2"></el-option>
                        </el-select>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="所属省份">
                        <el-select placeholder="请选择" v-model="val">
                            <el-option label="1" value="1"></el-option>
                            <el-option label="2" value="2"></el-option>
                        </el-select>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="排序">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="封面图">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="素材图">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
        <!-- 二维码参数 -->
        <div class="divBar"></div>
        <h5 class="titleInfo">
            二维码参数
        </h5>
            <el-row>
                <el-col :span="24">
                    <el-form-item label="左边距">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="上边距">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="二维码大小">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-form-item>
                <el-button style="margin-top:30px;margin-left:130px" type="primary" @click="submitFn('form')" >立即提交</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>
<script>
    import { vipInfo } from '@/api/vipInfo'
    export default {
        name:"materialPhotoAdd",
        data(){
            return {
                val:"1",
                userId:"",
                list1:{},
                list2:[],
                list3:{}
            }
        },
        filters:{
            filterNull(e) {
                if(!e){
                    return "暂无"
                }else{
                    return e
                }
            },
            cardNull(e){
                return window.helper.cardType(e)
            },
            userFocus(e){
                return window.helper.userFocus(e)
            }
        },
        mounted(){
            this.userId = Number(this.$route.query.userId)
            this.getList()
        },
        methods:{
            getList(){
                let datas = {userId:this.userId}
                // vipInfo(datas).then().then(res =>{
                //     if(!res.data.code){
                //         if(res.data.data.user){
                //             this.list1 = res.data.data.user
                //         }
                //         if(res.data.data.bankCard){
                //             this.list2 = res.data.data.bankCard
                //         }
                //         if(res.data.data.userExtra){
                //             this.list3 = res.data.data.userExtra
                //         }
                //     }else{
                //         this.$message.error("数据接口访问失败");
                //     }
                // })
                // .catch(error =>{
                //     this.$message.error(error);
                // })
            }
        }
    }
</script>

<style scoped>
    .app-container{padding: 0px!important}
    .form{margin-left: 268px}
</style>
